import request from '@/config/axios'
// 重构接口查询不分页
export const getBaseApi = (params: any) => {
    return request.get({ url: '/api/system/baseContent/listAll',params })
}
// 查询分页
export const getBaselistApi = (params: any) => {
    return request.get({ url: '/api/system/baseContent/list',params })
}
// 重构新增接口
export const addBaseApi = (params: any) => {
    return request.post({ url: '/api/system/baseContent', data: params })
}
// 重构修改接口
export const putBaseApi = (params: any) => {
    return request.put({ url: '/api/system/baseContent', data: params })
}
// 批量保存内容前删除
export const addsDeteleBaseApi = (params: any) => {
    return request.post({ url: '/api/system/baseContent/batchSaveBeforeDelete', data: params })
}
// 批量保存官网内容
export const addsBaseApi = (params: any) => {
    return request.post({ url: '/api/system/baseContent/batchSave', data: params })
}
// 重构删除
export const deteleBaseApi = (params: any) => {
    return request.delete({ url: '/api/system/baseContent/' + params })
}
// 查询详情
export const getDetailApi = (params: any) => {
    return request.get({ url: '/api/system/baseContent/'+params })
}





// ---------------------------------------------------------------------------------------------------
// 获取党建
export const getPartyNewsListApi = (params: any) => {
    return request.get({ url: '/api/system/partyNews/list', params })
}
// 党建新增
export const addPartyNewsApi = (params: any) => {
    return request.post({ url: '/api/system/partyNews', data: params })
}
// 党建修改
export const editPartyNewsApi = (params: any) => {
    return request.put({ url: '/api/system/partyNews', data: params })
}
// 党建删除
export const deletePartyNewsApi = (params: any) => {
    return request.delete({ url: '/system/partyNews/' + params })
}
// 党建动图
export const getPartyBannerApi = () => {
    return request.get({ url: '/api/system/partyBanner/list'})
}
// 党建新增动图
export const addPartyBannerApi = (params: any) => {
    return request.post({ url: '/api/system/partyBanner', data: params })
}



// 获取办事指南
export const getWorkGuideListApi = (params: any) => {
    return request.get({ url: '/api/system/workGuide/list', params })
}
// 办事指南新增
export const addWorkGuideApi = (params: any) => {
    return request.post({ url: '/api/system/workGuide', data: params })
}
// 办事指南修改
export const editWorkGuideApi = (params: any) => {
    return request.put({ url: '/api/system/workGuide', data: params })
}
// 办事指南删除
export const deleteWorkGuideApi = (params: any) => {
    return request.delete({ url: '/api/system/workGuide/' + params })
}


// 获取公示公告
export const getPublicAnnouncementListApi = (params: any) => {
    return request.get({ url: '/api/system/publicAnnouncement/list', params })
}
// 公示公告新增
export const addPublicAnnouncementApi = (params: any) => {
    return request.post({ url: '/api/system/publicAnnouncement', data: params })
}
// 公示公告修改
export const editPublicAnnouncementApi = (params: any) => {
    return request.put({ url: '/api/system/publicAnnouncement', data: params })
}
// 公示公告删除
export const deletePublicAnnouncementApi = (params: any) => {
    return request.delete({ url: '/api/system/publicAnnouncement/' + params })
}



// 获取课程
export const getTalentTrainingListApi = (params: any) => {
    return request.get({ url: '/api/system/talentTraining/list', params })
}
// 课程新增
export const addTalentTrainingApi = (params: any) => {
    return request.post({ url: '/api/system/talentTraining', data: params })
}
// 课程修改
export const editTalentTrainingApi = (params: any) => {
    return request.put({ url: '/api/system/talentTraining', data: params })
}
// 课程删除
export const deleteTalentTrainingApi = (params: any) => {
    return request.delete({ url: '/api/system/talentTraining/' + params })
}


// 首页配置
export const getHomeConfigurationListApi = (params: any) => {
    return request.get({ url: '/api/system/homeConfiguration/listAll', params })
}
// 首页批量新增修改
export const updateHomeConfigurationListApi = (params: any) => {
    return request.post({ url: '/api/system/homeConfiguration/batchInsertOrUpdate', data:params })
}
// 首页配置新增
export const addHomeConfigurationListApi = (params: any) => {
    return request.post({ url: '/api/system/homeConfiguration', data:params })
}
// 首页配置修改
export const editHomeConfigurationListApi = (params: any) => {
    return request.put({ url: '/api/system/homeConfiguration', data:params })
}


// 新都特色
export const getXinduCharacteristicListApi = (params: any) => {
    return request.get({ url: '/api/system/xinduCharacteristic/query', params })
}
// 新都特色修改
export const xinduCharacteristicApi = (params: any) => {
    return request.post({ url: '/api/system/xinduCharacteristic',data: params })
}

// 首页全部数据


// 首页新增数据